home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / frame_32 / DoAction.as
Text File  |  2013-04-24  |  589b  |  26 lines

  1. if(kingisdead == 1)
  2. {
  3.    kingisdead = 0;
  4. }
  5. else
  6. {
  7.    gotoAndStop(21);
  8. }
  9. bonus = (1280 - st) * 10;
  10. kingtime = st / 32;
  11. _root.kongregateServices.connect();
  12. if(difficulty == "easy")
  13. {
  14.    _root.kongregateStats.submit("gamecomplete_easy",1);
  15.    _root.kongregateStats.submit("kingtime_easy",kingtime);
  16.    _root.kongregateScores.setMode("Normal");
  17. }
  18. else
  19. {
  20.    _root.kongregateStats.submit("gamecomplete_hard",1);
  21.    _root.kongregateStats.submit("kingtime_hard",kingtime);
  22.    _root.kongregateScores.setMode("Hard");
  23. }
  24. _root.kongregateScores.submit(score + bonus);
  25. stop();
  26.